<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>迅腾报表后台管理</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="__WZHPUBLIC__admin/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="__WZHPUBLIC__admin/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="__WZHPUBLIC__admin/assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="__WZHPUBLIC__admin/assets/css/admin.css">
    <link rel="stylesheet" href="__WZHPUBLIC__admin/assets/css/app.css">
    <style type="text/css">
        .pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}
        .pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}
        .pagination .active{background-color: #dd1a20;color: #fff;}
        .pagination .disabled{color:#aaa;}
    </style>
</head>

<body data-type="generalComponents">

        {include file='Public:header'}

        {include file='Public:menu'}


        <div class="tpl-content-wrapper">

            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="{:url('admin/Bonus/index')}">奖金管理</a></li>
                <li class="am-active">奖金列表</li>
            </ol>
            <div class="tpl-portlet-components">

                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-3">
                            <!--<div class="am-btn-toolbar">-->
                                <!--<div class="am-btn-group am-btn-group-xs">-->
                                    <!--<button type="button" class="am-btn am-btn-default am-btn-success" onclick="add()"><span class="am-icon-plus"></span> 新增</button>-->

                                <!--</div>-->
                            <!--</div>-->
                        </div>
                        <form action="{:url('admin/Bonus/index')}" method="get">
                        <div class="am-u-sm-12 am-u-md-3">
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-input-group am-input-group-sm">
                                <input name="order" type="text" class="am-form-field" placeholder="请输入项目编号">
                                <span class="am-input-group-btn">
            <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" ></button>
          </span>
                            </div>
                        </div>
                        </form>
                    </div>
                    <div class="am-g">
                        <div class="am-u-sm-12">
                            <form class="am-form">
                                <table class="am-table am-table-striped am-table-hover table-main " style="font-size:1.2rem">
                                    <thead>
                                        <tr>
                                            <th class="table-title">编号</th>
                                            <th class="table-title">标题</th>
                                            <th class="table-title">项目收入</th>
                                            <th class="table-title">物料支出</th>
                                            <th class="table-title">劳务支出</th>
                                            <th class="table-title">税收支出</th>
                                            <th class="table-title ">资金占用</th>
                                            <th class="table-title ">风险金支出</th>
                                            <th class="table-title">发展金支出</th>
                                            <th class="table-title">项目利润</th>
                                            <th class="table-title">奖金占比</th>
                                            <th class="table-title">奖金池</th>
                                            <th class="table-set">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    {foreach name="res" item="k"}
                                        <tr>
                                            <td>{$k.order}</td>
                                            <td>{$k.title}</td>
                                            <td>{$k.income}</td>
                                            <td>{$k.material}</td>
                                            <td>{$k.personnel}</td>
                                            <td>{$k.tax}</td>
                                            <td>{$k.capital}</td>
                                            <td>{$k.risk}</td>
                                            <td>{$k.develop}</td>
                                            <td>{$k.profit}</td>
                                            <td>{$k.percent}</td>
                                            <td>{$k.bonus}</td>

                                            <td>
                                                <div class="am-btn-toolbar">
                                                    <div class="am-btn-group am-btn-group-xs">
                                                        <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary" onclick="edit({$k.id})"><span class="am-icon-pencil-square-o"></span> 更新</button>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    {/foreach}
                                    </tbody>
                                </table>
                                <div class="am-cf">


                                    {$res->render()|raw}


                                </div>
                                <hr>

                            </form>
                        </div>

                    </div>
                </div>
                <div class="tpl-alert"></div>
            </div>










        </div>

    </div>

        <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
        <script src="__WZHPUBLIC__admin/assets/js/jquery.min.js"></script>
        <script src="__WZHPUBLIC__admin/assets/js/amazeui.min.js"></script>
        <script src="__WZHPUBLIC__admin/assets/js/app.js"></script>
        <script type="text/javascript">

            function  edit($k) {
                window.location.href="{:url('admin/Bonus/edit')}?id="+$k;
            }



        </script>
</body>

</html>